/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.ticket.serviceteach.service;

import java.util.List;

import com.jeeplus.modules.ticket.samelevelorgan.entity.SamelevelOrgan;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeeplus.core.persistence.Page;
import com.jeeplus.core.service.CrudService;
import com.jeeplus.modules.ticket.serviceteach.entity.ServiceTeach;
import com.jeeplus.modules.ticket.serviceteach.mapper.ServiceTeachMapper;

/**
 * 评价教辅中层干部Service
 * @author 刘明星
 * @version 2021-09-15
 */
@Service
@Transactional(readOnly = true)
public class ServiceTeachService extends CrudService<ServiceTeachMapper, ServiceTeach> {

	public ServiceTeach get(String id) {
		return super.get(id);
	}
	
	public List<ServiceTeach> findList(ServiceTeach serviceTeach) {
		return super.findList(serviceTeach);
	}
	
	public Page<ServiceTeach> findPage(Page<ServiceTeach> page, ServiceTeach serviceTeach) {
		return super.findPage(page, serviceTeach);
	}

	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateGood(ServiceTeach serviceTeach){
		mapper.updateGood(serviceTeach);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateCompetent(ServiceTeach serviceTeach){
		mapper.updateCompetent(serviceTeach);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateBasisCompetentList(ServiceTeach serviceTeach){
		mapper.updateBasisCompetentList(serviceTeach);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateNoCompetentList(ServiceTeach serviceTeach){
		mapper.updateNoCompetentList(serviceTeach);
	}

	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakGood(ServiceTeach serviceTeach){
		mapper.updateSpeakGood(serviceTeach);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakCompetent(ServiceTeach serviceTeach){
		mapper.updateSpeakCompetent(serviceTeach);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakBasisCompetentList(ServiceTeach serviceTeach){
		mapper.updateSpeakBasisCompetentList(serviceTeach);
	}
	@Transactional(readOnly = false) // 如果不加这一行那么就只能只读不能修改所以用到修改方法是必加的
	public void updateSpeakNoCompetentList(ServiceTeach serviceTeach){
		mapper.updateSpeakNoCompetentList(serviceTeach);
	}

	@Transactional(readOnly = false)
	public void save(ServiceTeach serviceTeach) {
		super.save(serviceTeach);
	}
	
	@Transactional(readOnly = false)
	public void delete(ServiceTeach serviceTeach) {
		super.delete(serviceTeach);
	}
	
}